package org.example.schoolbus.service.impl;
import org.example.schoolbus.mapper.RegisterMapper;
import org.example.schoolbus.service.RegisterService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class RegisterServiceimpl implements RegisterService {
    @Autowired
    private RegisterMapper registerMapper;
    @Override
    public int RegisterUser(String userstyle,String username,String useremail,String userphone,String userpassword)
    {
        if(registerMapper.RegisterUser(userstyle,username,useremail,userphone,userpassword)>0)
        {
            return 1;
        }
        else
            return 0;
    }

}
